import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
    {
      path: '/img_detail/:id',
      name: 'imgdetail',
      component: () => import(/* webpackChunkName: "imaDetail" */ './views/imgs/imaDetail.vue')
    },
    {
      path: '/goods',
      name: 'goods',
      component: () => import(/* webpackChunkName: "goods" */ './views/goods/goods.vue')
    },
    {
      path: '/goods_detail/:id',
      name: 'goodsdetail',
      component: () => import(/* webpackChunkName: "GoodsDetail" */ './views/goods/GoodsDetail.vue')
    },
    {
      path: '/imgs',
      name: 'imgs',
      component: () => import(/* webpackChunkName: "imgList" */ './views/imgs/imgList.vue')
    }
  ]
})
